﻿@using Framework.Util.Helpers
@using Project.Resource.User
@model Project.WebUI.Models.UserInfoDTO
<script type="text/javascript">
    $(document).ready(function () {     
            $("#txtbirthday").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'mm/dd/yy',
                yearRange: '1930:2050'
            });        
    });
</script>
@using (Html.BeginForm("Profile", "User", FormMethod.Post,new {id="formProfile"}))
{    
    <div class="content_table">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <tr class="row1">
                <td class="th_left">UserName
                </td>
                <td class="th_left">
                    @Model.UserName
                </td>
            </tr>
            <tr class="row2">
                <td class="th_left">Email:
                </td>

                <td class="th_left">
                    @Model.Email
                </td>
            </tr>
            <tr class="row1">
                <td class="th_left">FirstName:
                </td>

                <td class="th_left">
                    <input type="text" class="cf_input" name="firstname" value="@Model.FirstName" />
                </td>
            </tr>
            <tr class="row2">
                <td class="th_left">LastName:
                </td>

                <td class="th_left">
                    <input type="text" class="cf_input" name="lastname" value="@Model.LastName" />
                </td>
            </tr>
            <tr class="row1">
                <td class="th_left">Birthday:
                </td>
                <td class="th_left">
                    <input type="text" class="cf_input" id="txtbirthday" name="txtbirthday" value="@string.Format("{0:mm/dd/yyyy}",Model.Birthday)" />
                </td>
            </tr>
            <tr class="row2">
                <td class="th_left">LRAccount:
                </td>

                <td class="th_left">
                    @Model.LrAccount
                </td>
            </tr>

            <tr class="row1">
                <td class="th_left">Address:
                </td>

                <td class="th_left">
                    <input type="text" class="cf_input" name="address" value="@Model.Address" />
                </td>
            </tr>
            <tr class="row2">
                <td class="th_left">Phone:
                </td>
                <td class="th_left">
                    <input type="text" class="cf_input" name="txtphone" value="@Model.Phone" />
                </td>
            </tr> 
            <tr class="row2">
                <td class="th_left">Country:
                </td>
                <td class="th_left">
                    @Html.DropDownList("CountryId", ViewBag.ListCountries as SelectList, new {style="width:198px;" })
                </td>
            </tr>          
        </table>
    </div> 
    <div class="footer_table">
        <div class="item_per_page" style="margin:0 !important;">
            <div onclick="return $('#formProfile').submit();" class="btSubmit"></div>
        </div>
    </div>
}

